package com.apex.restful.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-4-7
 */
@Entity
public class Visited {
    private String sysVType;
    private Integer sysVObjectId;
    private String sysVObjectValues;
    private String regCode;
    private Date sysVTime;
    private String sysVIp;
    private Integer sysVNumber;
    private String subCode;
    private Date subTime;
    private Integer delFlag;
    private Integer sysVConfirm;

    @Basic
    @Column(name = "sysVType")
    public String getSysVType() {
        return sysVType;
    }

    public void setSysVType(String sysVType) {
        this.sysVType = sysVType;
    }

    @Id
    @Column(name = "sysVObjectID")
    public Integer getSysVObjectId() {
        return sysVObjectId;
    }

    public void setSysVObjectId(Integer sysVObjectId) {
        this.sysVObjectId = sysVObjectId;
    }

    @Basic
    @Column(name = "sysVObjectValues")
    public String getSysVObjectValues() {
        return sysVObjectValues;
    }

    public void setSysVObjectValues(String sysVObjectValues) {
        this.sysVObjectValues = sysVObjectValues;
    }

    @Basic
    @Column(name = "RegCode")
    public String getRegCode() {
        return regCode;
    }

    public void setRegCode(String regCode) {
        this.regCode = regCode;
    }

    @Basic
    @Column(name = "sysVTime")
    public Date getSysVTime() {
        return sysVTime;
    }

    public void setSysVTime(Date sysVTime) {
        this.sysVTime = sysVTime;
    }

    @Basic
    @Column(name = "sysVIp")
    public String getSysVIp() {
        return sysVIp;
    }

    public void setSysVIp(String sysVIp) {
        this.sysVIp = sysVIp;
    }

    @Basic
    @Column(name = "sysVNumber")
    public Integer getSysVNumber() {
        return sysVNumber;
    }

    public void setSysVNumber(Integer sysVNumber) {
        this.sysVNumber = sysVNumber;
    }

    @Basic
    @Column(name = "subCode")
    public String getSubCode() {
        return subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }

    @Basic
    @Column(name = "subTime")
    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    @Basic
    @Column(name = "DelFlag")
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Basic
    @Column(name = "sysVConfirm")
    public Integer getSysVConfirm() {
        return sysVConfirm;
    }

    public void setSysVConfirm(Integer sysVConfirm) {
        this.sysVConfirm = sysVConfirm;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Visited visited = (Visited) o;
        return Objects.equals(sysVType, visited.sysVType) &&
                Objects.equals(sysVObjectId, visited.sysVObjectId) &&
                Objects.equals(sysVObjectValues, visited.sysVObjectValues) &&
                Objects.equals(regCode, visited.regCode) &&
                Objects.equals(sysVTime, visited.sysVTime) &&
                Objects.equals(sysVIp, visited.sysVIp) &&
                Objects.equals(sysVNumber, visited.sysVNumber) &&
                Objects.equals(subCode, visited.subCode) &&
                Objects.equals(subTime, visited.subTime) &&
                Objects.equals(delFlag, visited.delFlag) &&
                Objects.equals(sysVConfirm, visited.sysVConfirm);
    }

    @Override
    public int hashCode() {

        return Objects.hash(sysVType, sysVObjectId, sysVObjectValues, regCode, sysVTime, sysVIp, sysVNumber, subCode, subTime, delFlag, sysVConfirm);
    }
}
